<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <link href="../../Content/jquery.autocomplete.css" rel="stylesheet" type="text/css" />
    <div>
        <form method="post" action="/TwoGrids/Index">
        <% if (ViewData["chkChooser"] == "true")
           { %>
        <input type="checkbox" checked="checked" value="1 to many" id="chkChooser" name="chkChooser" />
        <% }
           else
           { %>
        <input type="checkbox" value="1 to many" id="chkChooser" name="chkChooser" />
        <% } %>
        1 to many<br />
        <br />
        </form>
    </div>
    <div>
        <div id="search1">
        </div>
        <table id="grid1" class="scroll" cellpadding="0" cellspacing="0">
        </table>
        <div id="pager1" class="scroll" style="text-align: center;">
        </div>
    </div>
    <br />
    <div>
        <div id="search2">
        </div>
        <input id="msg" name="msg" value="msg" />
        <table id="grid2" class="scroll" cellpadding="0" cellspacing="0">
        </table>
        <div id="pager2" class="scroll" style="text-align: center;">
        </div>
    </div>
    <br />
    <form method="post" action="/TwoGrids/Save">
    <input type="submit" value="Luu" />
    </form>
    <input type="text" id="productName" name="productName" value="" />
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ScriptContent" runat="server">

    <script src="../../Scripts/jqGridJs/grid.inlinedit.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="<%= Url.Content("~/Scripts/Grid1.js") %>"></script>

    <script language="javascript" type="text/javascript" src="<%= Url.Content("~/Scripts/Grid2.js") %>"></script>

    <script src="../../Scripts/jquery.autocomplete.min.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#chkChooser').click(function() {
                document.forms[0].submit();
            });
            $('input:text').keyup(function(key) {

            });
            $('#1').click(function() {
                alert((this).html());
            });
        });
    </script>

</asp:Content>
